import request from '@/utils/request'

export function goodsList(data) {
  return request({
    url: '/wings/store-product/list',
    method: 'GET',
    params: data
  })
}

export function changeGoodsShowp(id, showStatus) {
  return request({
    url: `/wings/store-product/show/${id}/${showStatus}`,
    method: 'PUT'
  })
}

export function addGoods(data) {
  return request({
    url: `/wings/store-product/add`,
    method: 'POST',
    data
  })
}

export function updateGoods(data) {
  return request({
    url: `/wings/store-product/update`,
    method: 'PUT',
    data
  })
}

export function findById(id) {
  return request({
    url: `/wings/store-product/find/${id}`,
    method: 'GET'
  })
}
